package com.omenkk.juc.synchronizedPlus;

import lombok.extern.slf4j.Slf4j;

import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.LockSupport;

@Slf4j
public class demo7 {
    public static void main(String[] args) {
        Thread t1=new Thread(()->{
            log.debug("线程开始执行");
            log.debug("park...");
            LockSupport.park();
            log.debug("线程解除暂停");
        });
        t1.start();
        LockSupport.unpark(t1);
        log.debug("unpark...");
    }
}
